<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设备管理 - LabEnergyInsight</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body class="bg-gray-50">
    <!-- Header -->
    <div class="bg-white p-4 shadow-sm">
        <div class="flex justify-between items-center">
            <h1 class="text-xl font-semibold">设备管理</h1>
            <div class="flex items-center space-x-2">
                <button class="p-2">
                    <i class="fas fa-ellipsis-v text-gray-500"></i>
                </button>
            </div>
        </div>
    </div>

    <!-- Main Content -->
    <div class="p-4 space-y-4">
        <!-- Device Categories -->
        <div class="flex space-x-2 overflow-x-auto pb-2">
            <button class="px-4 py-2 bg-blue-500 text-white rounded-full text-sm whitespace-nowrap">
                全部设备
            </button>
            <button class="px-4 py-2 bg-white text-gray-600 rounded-full text-sm whitespace-nowrap">
                通风系统
            </button>
            <button class="px-4 py-2 bg-white text-gray-600 rounded-full text-sm whitespace-nowrap">
                实验设备
            </button>
            <button class="px-4 py-2 bg-white text-gray-600 rounded-full text-sm whitespace-nowrap">
                监控设备
            </button>
        </div>

        <!-- Device Status Overview -->
        <div class="grid grid-cols-2 gap-4">
            <div class="bg-white rounded-xl p-4 shadow-sm">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-sm text-gray-500">在线设备</p>
                        <p class="text-2xl font-bold mt-1">24/28</p>
                        <p class="text-xs text-green-500 mt-1">
                            <i class="fas fa-arrow-up"></i> 较昨日 +2
                        </p>
                    </div>
                    <div class="bg-green-50 p-2 rounded-lg">
                        <i class="fas fa-check-circle text-green-500"></i>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl p-4 shadow-sm">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-sm text-gray-500">待维护</p>
                        <p class="text-2xl font-bold mt-1">3</p>
                        <p class="text-xs text-yellow-500 mt-1">
                            <i class="fas fa-exclamation-circle"></i> 需要关注
                        </p>
                    </div>
                    <div class="bg-yellow-50 p-2 rounded-lg">
                        <i class="fas fa-tools text-yellow-500"></i>
                    </div>
                </div>
            </div>
        </div>

        <!-- Device List -->
        <div class="bg-white rounded-xl p-4 shadow-sm">
            <div class="flex justify-between items-center mb-4">
                <h2 class="font-semibold">设备列表</h2>
                <div class="flex items-center space-x-2">
                    <button class="text-sm text-blue-500">
                        <i class="fas fa-plus mr-1"></i> 添加设备
                    </button>
                </div>
            </div>
            <div class="space-y-3">
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <div class="bg-green-50 p-2 rounded-lg">
                            <i class="fas fa-wind text-green-500"></i>
                        </div>
                        <div>
                            <p class="font-medium">主通风系统</p>
                            <p class="text-xs text-gray-500">运行时长: 168h</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-2">
                        <span class="text-xs px-2 py-1 bg-green-100 text-green-500 rounded">正常</span>
                        <i class="fas fa-chevron-right text-gray-400"></i>
                    </div>
                </div>
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <div class="bg-yellow-50 p-2 rounded-lg">
                            <i class="fas fa-flask text-yellow-500"></i>
                        </div>
                        <div>
                            <p class="font-medium">实验设备A</p>
                            <p class="text-xs text-yellow-500">需要维护</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-2">
                        <span class="text-xs px-2 py-1 bg-yellow-100 text-yellow-500 rounded">维护中</span>
                        <i class="fas fa-chevron-right text-gray-400"></i>
                    </div>
                </div>
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <div class="bg-red-50 p-2 rounded-lg">
                            <i class="fas fa-microchip text-red-500"></i>
                        </div>
                        <div>
                            <p class="font-medium">监控主机</p>
                            <p class="text-xs text-red-500">离线</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-2">
                        <span class="text-xs px-2 py-1 bg-red-100 text-red-500 rounded">故障</span>
                        <i class="fas fa-chevron-right text-gray-400"></i>
                    </div>
                </div>
            </div>
        </div>

        <!-- Maintenance Schedule -->
        <div class="bg-white rounded-xl p-4 shadow-sm">
            <div class="flex justify-between items-center mb-4">
                <h2 class="font-semibold">维护计划</h2>
                <button class="text-sm text-blue-500">查看全部</button>
            </div>
            <div class="space-y-3">
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <div class="bg-blue-50 p-2 rounded-lg">
                            <i class="fas fa-calendar-alt text-blue-500"></i>
                        </div>
                        <div>
                            <p class="font-medium">通风系统维护</p>
                            <p class="text-xs text-gray-500">计划时间: 2024-03-20</p>
                        </div>
                    </div>
                    <div class="text-blue-500">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <div class="bg-blue-50 p-2 rounded-lg">
                            <i class="fas fa-calendar-alt text-blue-500"></i>
                        </div>
                        <div>
                            <p class="font-medium">实验设备B维护</p>
                            <p class="text-xs text-gray-500">计划时间: 2024-03-22</p>
                        </div>
                    </div>
                    <div class="text-blue-500">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 